package com.million.artservice.client;

import com.million.commonutils.orderVo.UcenterMemberVo;
import com.million.servicebase.exception.GuliException;
import org.springframework.stereotype.Component;

/**
 * @Author: studyboy
 * @Date: 2022/3/31  16:20
 */
//兜底的方法   如果出现问题，比如服务器宕机了，就进行服务降级
@Component
public class UserClientFallbackService implements UserClient{

    @Override
    public UcenterMemberVo getMemberInfoById (String memberId) {
        throw new GuliException(20001,"服务出现异常");
    }
}


